package com.example.day05;

public class Shapertest {

    public static void main(String[] args) {
        Shape [] lists=new Shape[3];
        Shape rect=new Rect(2,4);
        Shape circle=new Circle(2);
        Shape  square=new Square(2);

        lists[0]=rect;
        lists[1]=circle;
        lists[2]=square;

        for (Shape list : lists) {
            System.out.println("===============");
            System.out.println(list.area());
            System.out.println(list.girth());
        }
    }
}
